package com.requiem.hist_group_manage_springboot.mapper;

import com.requiem.hist_group_manage_springboot.model.EvaluationModel;
import com.requiem.hist_group_manage_springboot.model.StudentModel;
import com.requiem.hist_group_manage_springboot.model.TeacherModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TeacherMapper {
    //查
    List<TeacherModel> getTeacherList();

    TeacherModel getTeacherByID(Integer id);

    TeacherModel getTeacherExit(String idCard);

    int getTeacherGroup(Integer groupId, Integer teacherId);

    int addGroup(Integer groupId, Integer teacherId);

    int deleteGroup(Integer groupId, Integer teacherId);

    //增
    int addTeacher(TeacherModel teacherModel);

    //删
    int deleteTeacher(Integer id);

    //修
    int editTeacher(TeacherModel teacherModel);

    //搜索
    List<TeacherModel> getSearchList(TeacherModel teacherModel);

    /*
     *评论功能
     */
    List<StudentModel> getStudent(Integer groupId);

    List<EvaluationModel> getEvaluation(Integer teacherId);

    int addEvaluation(EvaluationModel evaluationModel);

    int resetPassword(int id, String password);

}
